import request from '@/utils/request'

// 查询设备心跳记录列表
export function listPlatformDeviceHeartbeatRecord(query) {
  return request({
    url: '/genius/platform-device-heartbeat-record/list',
    method: 'get',
    params: query
  })
}

// 查询设备心跳记录详细
export function getPlatformDeviceHeartbeatRecord(id) {
  return request({
    url: '/genius/platform-device-heartbeat-record/' + id,
    method: 'get'
  })
}

// 新增设备心跳记录
export function addPlatformDeviceHeartbeatRecord(data) {
  return request({
    url: '/genius/platform-device-heartbeat-record',
    method: 'post',
    data: data
  })
}

// 修改设备心跳记录
export function updatePlatformDeviceHeartbeatRecord(data) {
  return request({
    url: '/genius/platform-device-heartbeat-record',
    method: 'put',
    data: data
  })
}

// 删除设备心跳记录
export function delPlatformDeviceHeartbeatRecord(id) {
  return request({
    url: '/genius/platform-device-heartbeat-record/' + id,
    method: 'delete'
  })
}

// 逻辑删除设备心跳记录
export function removedPlatformDeviceHeartbeatRecord(id) {
  return request({
    url: '/genius/platform-device-heartbeat-record/' + id,
    method: 'delete'
  })
}